﻿<div class="coupon_page getbg">
    <header class="header" style="background: transparent; border: transparent;">
        <div class="left">
            <a ng-href="#/product/50"><img src="img/home1.png" class="back" /></a>
        </div>
        <div class="tit"></div>
        <div class="right"></div>
    </header>
    <section class="getcoupon_box">
        <ul>
            <li ng-repeat="Coupon in CouponList" ng-click="GetCoupon(Coupon)">
                <div class="gc_box">
                    <div class="gc_price">
                        <div class="gc_num">￥{{Coupon.discount | currency:''}}元</div>
                    </div>
                    <div class="gc_info">
                        <div class="gc_content">
                            <p class="gc_category">{{Coupon.name}}</p>
                            <p class="gc_title">{{Coupon.total>0?'满'+ (Coupon.total | currency:'')  + '使用':'现金抵扣无门槛'}} </p>
                            <p class="gc_time">{{Coupon.date_start}}至{{Coupon.date_end}}</p>
                            <p >点击领取</p>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </section>
</div>


<!--领取成功-->
<div ng-class="resultShow?'ui_mask':'ui_mask d_hide'">
    <div class="ui_pop">
        <div class="mask_header">
            <span>领取结果</span>
            <div class="close" ng-click="resultShow=false;">
                <i class="ui-icon-close-page"></i>
            </div>
        </div>
        <div class="mask_content">
            <div class="get_result">
                <img src="img/success.png"  ng-src="{{getCouponResult.success==1?'img/success.png':'img/error.png'}}"/>
                <p>{{getCouponResult.message}}</p>
            </div>
            <div class="get_list">
                <ul>
                    <li ng-click="GoProduct()">前往购买商品</li>
                    <li ng-click="GoMyCoupon()">查看我的优惠劵</li>
                </ul>
            </div>
        </div>
    </div>
</div>

<!--活动结束-->
<!--<div class="ui_mask d_hide">
    <div class="ui_pop">
        <div class="mask_header">
            <span>领取结果</span>
            <div class="close">
                <i class="ui-icon-close-page"></i>
            </div>
        </div>
        <div class="mask_content">
            <div class="get_result">
                <img src="img/error.png" />
                <p>你晚了一步,活动已结束</p>
            </div>
            <div class="get_list">
                <ul>
                    <li>前往购买商品</li>
                    <li>查看我的优惠劵</li>
                </ul>
            </div>
        </div>
    </div>
</div>-->
